package org.bp.util;

import java.util.regex.Pattern;

public class NumberUtils {
	
	/**
	 * 判断该字符串是否是整数
	 * @param str
	 * @return
	 */
	public static boolean isInteger(String str) {
		Pattern pattern = Pattern.compile("^[\\d]*$");
		return pattern.matcher(str).matches();
	}
}
